//
//  ViewController.m
//  ScrollView轮播图-封装
//
//  Created by mafeng on 16/7/21.
//  Copyright © 2016年 mafeng. All rights reserved.
//

#import "ViewController.h"
#import "MFCyclmage.h"
#define kScreenBounds   [UIScreen mainScreen].bounds
#define kScreenWidth kScreenBounds.size.width
#define kScreenHeight kScreenBounds.size.height
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    MFCyclmage *cycle = [[MFCyclmage alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 200)];
    NSArray *array = @[@"0", @"1", @"2", @"3", @"4"];
    [cycle setImageWithArray:array];
    // 这里是改变readonly属性的属性
    cycle.cycleScrollView.showsHorizontalScrollIndicator = YES;
    [self.view addSubview:cycle];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
